#include <iostream>
#include <string>

using namespace std;

int main()
{
    string s1;
    char c1[10];
    cin >> s1;
    cout << s1 << endl;

    int i = 0;
    while(cin >> c1[i])
        ++i;

    cout << *c1 << endl;
    return 0;
}
